package com.ccut.xunfeiSpringboot.mapper;/*
 * ClassName: QuestionMapper
 * Package: com.ccut.xunfeiSpringboot.mapper
 * Description:
 * @Author 刘千湫
 * @Create 2025/7/12 10:22
 * @Version 1.0
 */

import com.ccut.xunfeiSpringboot.entity.Question;
import org.apache.ibatis.annotations.*;

import java.util.List;

public interface QuestionMapper {

    List<Question> getAllQuestions();
    List<Question> getQuestionsByPage(@Param("start") int start, @Param("pageSize") int pageSize);

    Question getQuestionById(Integer id);

    void addQuestion(Question question);

    void updateQuestion(Question question);

    void deleteQuestion(Integer id);
}
